<?

	////
	///
	//	Environment

		$JO_path		= "C:/xampp/htdocs/JO";



	////
	///
	//	Database

		$JO_DB_host		= "localhost";
		$JO_DB_user		= "root";
		$JO_DB_password	= "";
		$JO_DB_database	= "JO";



	////
	///
	//	Log

		$JO_log_visit	= 1; // 0: false; 1: true;
		$JO_log_query	= 1; // 0: false; 1: Insert, Update & Delete; 2: Select, Insert, Update & Delete;



	////
	///
	//	File

		/*

			A traffic checker is needed.
			For an example, there can be a traffic check page, 'http://localhost/JC/JC_00_traffic.php'.
			The traffic can be counted by a number between 0 and 1.
			The main server will decide a link according to the traffic status.

		*/

		// If you modify this, you need to modify the comment of 'file.host' at the same time.

		$JO_file = array(

			"default" => array(

				"type"		=> array( "" ),
				"host"		=> "localhost",
				"folder"	=> "JC_90_file"

			),

			"user" => array(

				"type"		=> array( "" ),
				"host"		=> "localhost",
				"folder"	=> "JC_91_file_user"

			),

			"photo" => array(

				"type"		=> array( "image" ),
				"host"		=> "localhost",
				"folder"	=> "JC_92_file_photo"

			),

			"music" => array(

				"type"		=> array( "mpeg" ),
				"host"		=> "localhost",
				"folder"	=> "JC_93_file_music"

			),

			"video" => array(

				"type"		=> array( "mpeg" ),
				"host"		=> "localhost",
				"folder"	=> "JC_94_file_video"

			),

		);



	////
	///
	//	Language

		if(			stripos( $_SERVER[ "HTTP_HOST" ], "en." ) !== false && stripos( $_SERVER[ "HTTP_HOST" ], "en." ) == 0 )	$JO_language = "EN";
		else if(	stripos( $_SERVER[ "HTTP_HOST" ], "ko." ) !== false && stripos( $_SERVER[ "HTTP_HOST" ], "ko." ) == 0 )	$JO_language = "KO";
		else																												$JO_language = "VI";



	////
	///
	//	Web Browser

		if(			strpos( $_SERVER[ "HTTP_USER_AGENT" ], "MSIE"			) !== false ) $JO_IE = true;
		else if(	strpos( $_SERVER[ "HTTP_USER_AGENT" ], "Google Chrome"	) !== false ) $JO_GC = true;
		else if(	strpos( $_SERVER[ "HTTP_USER_AGENT" ], "Firefox"		) !== false ) $JO_FF = true;

?>
